<template>
  <div>
    <router-view />
    <van-tabbar v-model="active" v-if="!(this.$route.path == '/detail')">
      <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/fenlei">分类</van-tabbar-item>
      <van-tabbar-item icon="friends-o" to="/shopcar">购物车</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="/my">个人中心</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "WorkspaceJsonApp",

  data() {
    return {
      active: 0,
    };
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="less" scoped>
</style>